from flask import Flask
from flask import request

app = Flask(__name__)

@app.route('/post_body_params',methods=['POST'])

def postbodyparams():
    user_name = request.form['userName']
    pwd = request.form['PWD']
    return '您好，%s!欢迎使用POST接口进行接口mock验证——POST_body！' % (user_name)

if __name__ == '__main__':
    app.run('127.0.0.1',5007,debug=True)